package com.liming.common.pojo.vo.coupon.openfeign;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.liming.common.serializer.CentToYuanSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author liming
 * @date 2025/3/22
 */
@Data
@Schema(description = "Feign - 小程序 - 商品内 用户 已经领取的优惠券")
public class FeignMiniProductUserCouponVO {

    @Schema(description = "优惠券id")
    private Long id;

    @Schema(description = "优惠券名称")
    private String name;

    @Schema(description = "优惠券类型（1 满减券， 2 折扣券）")
    private Integer discountType;

    @Schema(description = "优惠券折扣值")
    private Integer discountAmount;

    @Schema(description = "优惠券最低消费金额")
    private Integer minPurchaseAmount;

    @Schema(description = "优惠券开始时间")
    private LocalDateTime startDate;

    @Schema(description = "优惠券结束时间")
    private LocalDateTime endDate;

    @Schema(description = "用户还能领取的数量 0表示不能在领取")
    private Long canReceiveQuantity;
}
